﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site2.master" AutoEventWireup="true" CodeFile="CatalogoGeografico.aspx.cs" Inherits="CatalogoGeografico" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <form id="empleado" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>

        <ul class="tabs">
            <li><a href="#tab1">Ciudades</a></li>
            <li><a href="#tab2">Municipios</a></li>
            <li><a href="#tab3">Estados</a></li>          
        </ul>

     <div class="tab_container">
         <div id="tab1" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="CiudadPaisId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="10" 
                            onpageindexchanging="grdDatos_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="CiudadPaisId" 
                             HeaderText=" No. "
                             SortExpression="CiudadPaisId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Descripcion"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoCiudad" runat="server" onclick="lnkNuevoCiudad_Click" 
                            >Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkEliminarCiudad" runat="server" onclick="lnkEliminarCiudad_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarCiudad" runat="server" onclick="lnkEditarCiudad_Click" 
                            >Editar</asp:LinkButton></td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtNombreCiudad" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarCiudad" runat="server" onclick="lnkGuardarCiudad_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

     <div class="tab_container">
         <div id="tab2" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos1" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="MunicipioPaisId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos1_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="10" 
                            onpageindexchanging="grdDatos1_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="MunicipioPaisId" 
                             HeaderText=" No. "
                             SortExpression="MunicipioPaisId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Descripcion"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoMunicipio" runat="server" onclick="lnkNuevoMunicipio_Click" 
                            >Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkNEliminarMunicipio" runat="server" onclick="lnkNEliminarMunicipio_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarMunicipio" runat="server" onclick="lnkEditarMunicipio_Click" 
                            >Editar</asp:LinkButton></td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtNombreMunicipio" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarMunicipio" runat="server" onclick="lnkGuardarMunicipio_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

     <div class="tab_container">
         <div id="tab3" class="tab_content">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
            <ContentTemplate>
            <table>
                <tr>
                    <td>

                    <asp:GridView ID="grdDatos2" runat="server"
                            Width="100%" AllowPaging="True" AllowSorting="True" 
                            DataKeyNames="EstadoPaisId" AutoGenerateColumns="False"
                            GridLines="None" 
                            onselectedindexchanged="grdDatos2_SelectedIndexChanged1" CellPadding="4" 
                            ForeColor="#333333" PageSize="10" 
                            onpageindexchanging="grdDatos2_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                      <Columns>   
                            <asp:CommandField  ShowEditButton="false"  ShowDeleteButton="false"   
                                ShowSelectButton="true" SelectText="Ver">
                            <ControlStyle Width="25px" Font-Italic="True" />
                            </asp:CommandField>
                            <asp:BoundField 
                             DataField="EstadoPaisId" 
                             HeaderText=" No. "
                             SortExpression="EstadoPaisId" 
                              ControlStyle-Width="10px" >
                            <ControlStyle Width="15px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField 
                             DataField="Nombre" 
                             HeaderText="Descripcion"
                             SortExpression="Nombre" 
                             ControlStyle-Width="30px" >
                            <ControlStyle Width="40px" />
                            <HeaderStyle Font-Size="XX-Small" HorizontalAlign="Center" 
                                VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                       </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                      
                    </td>
                </tr>
                <tr>                    
                    <td> 
                        <asp:LinkButton ID="lnkNuevoEstado" runat="server" onclick="lnkNuevoEstado_Click" 
                            >Nuevo</asp:LinkButton>  | 
                    <asp:LinkButton ID="lnkEliminarEstado" runat="server" onclick="lnkEliminarEstado_Click" 
                            >Eliminar</asp:LinkButton>   | 
                        <asp:LinkButton ID="lnkEditarEstado" runat="server" onclick="lnkEditarEstado_Click" 
                            >Editar</asp:LinkButton></td>
                </tr>
                <tr>
                    <td>

                          <table width="100%" style="width: 600px">

                            <tr class="td2">
                              <td align="right"><label for="corg">Nombre:</label></td>
                              <td colspan="3" align="left">
                                  <asp:TextBox ID="txtNombreEstado" runat="server" Height="23px" Width="348px" ReadOnly="True"></asp:TextBox>
                                </td>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="lnkGuardarEstado" runat="server" onclick="lnkGuardarEstado_Click" 
                                        >Guardar</asp:LinkButton>
                                </td>
                            </tr>
                            </tr>
                          </table>

                    </td>
                </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>  
         </div>
     </div>

    </form>
</asp:Content>

